/*
    Created by IntelliJ IDEA.
    User: gaozhe
    Date: 2019/11/10
    Time: 下午 12:39
*/
package com.gaozhe.dao;

import com.gaozhe.pojo.Books;
import java.util.List;

public interface BookMapper {
    /**
     * 增加一本书
     * @param book
     * @return
     */
    int addBook(Books book);

    /**
     * 根据id删除书籍
     * @param id
     * @return
     */
    int deleteBookById(int id);

    /**
     * 更新书籍
     * @param book
     * @return
     */
    int updateBook(Books book);

    /**
     * 根据id查询书籍
     * @param id
     * @return
     */
    Books queryBookById(int id);

    /**
     * 查询全部书籍
     * @return
     */
    List<Books> queryAllBook();
}
